package com.bajie.bjlisten.entity.response;

public enum EBookCode implements ResultCode {

    EBOOK_ISEXISTERROR(false, 25000, "该本小说书架中已存在"),
    EBOOK_ISNULLERROR(false, 25001, "该本电子书不存在");

    //操作代码
    boolean success;
    //操作代码
    int code;
    //提示信息
    String message;

    private EBookCode(boolean success, int code, String message) {
        this.success = success;
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean success() {
        return false;
    }

    @Override
    public int code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }

}